package jd.client;

import jd.client.exception.ResponseParseException;

/**
 * 
 * @author Denis Migol
 * 
 */
public abstract class Response {

	private String response;

	/**
	 * @param response
	 *            the response to set
	 */
	protected void setResponse(final String response) {
		this.response = response;
	}

	/**
	 * @return the response
	 */
	public String getResponse() {
		return response;
	}

	/**
	 * TODO
	 * 
	 * @throws GetResponseParseException
	 */
	public Response parse(final String response) throws ResponseParseException {
		setResponse(response);
		return this;
	}

	@Override
	public String toString() {
		return response;
	}
}
